package com.ptswitch.material.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.ptswitch.material.dao.ContractAttachmentMapper;
import com.ptswitch.material.model.contract.ContractAttachment;
import com.ptswitch.material.service.ContractAttachmentService;

@Service
public class ContractAttachmentServiceImpl implements ContractAttachmentService {
    @Autowired
    private ContractAttachmentMapper mapper;

    @Override
    public ContractAttachment findById(long id) {
        return mapper.findById(id);
    }

    @Override
    public void delete(ContractAttachment attachment) {
        mapper.delete(attachment);
    }

    @Override
    public void save(ContractAttachment attachment) {
        mapper.add(attachment);
    }

}
